package day9;
import java.io.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class JiaMi {
    public static void main(String[] args) throws Exception {
        File file = new File("D:\\Documents\\桌面\\KDS_3002_2001.jpg");
        FileInputStream fis = new FileInputStream(file);



        byte[] b = new byte[fis.available()];
        int len = fis.read(b);
        fis.close();
        for (int i = 0; i <b.length ; i++) {
            b[i]=(byte)~b[i];
        }
        FileOutputStream fout=new FileOutputStream(file);
        fout.write(b,0,len);
        fout.close();
    }
}
